import request from '@/utils/request'

// 查询模型比较列表
export function listQContent(query) {
  return request({
    url: '/article/qContent/list',
    method: 'get',
    params: query
  })
}

// 查询模型比较详细
export function getQContent(id) {
  return request({
    url: '/article/qContent/' + id,
    method: 'get'
  })
}

export function getSetModelInfo() {
  return request({
    url: '/article/qContent/getModelSet',
    method: 'post',
    data: {}
  })
}

// 修改功能参数
export function updateFunprompts(data) {
  return request({
    url: '/article/funprompts',
    method: 'put',
    data: data
  })
}

// 新增模型比较
export function addQContent(data) {
  return request({
    url: '/article/qContent',
    method: 'post',
    data: data
  })
}

// 修改模型比较
export function updateQContent(data) {
  return request({
    url: '/article/qContent',
    method: 'put',
    data: data
  })
}

// 删除模型比较
export function delQContent(id) {
  return request({
    url: '/article/qContent/' + id,
    method: 'delete'
  })
}
// 删除模型回答
export function delAContent(id) {
  return request({
    url: '/article/qContent/delAcontent/' + id,
    method: 'delete'
  })
}

// 生成文章
export function startGen(id,genPs) {
  genPs.ids = id;
  return request({
    url: '/article/qContent/startGen' ,
    method: 'post',
    data: genPs
  })
}

// 生成当前条件下所有文章
export function startGenAll(query,genPs) {
  query.genPs = genPs;
  console.log(query)
  return request({
    url: '/article/qContent/tartGenAll/',
    method: 'post',
    data: query
  })
}

// 生成一个
export function genContentOne(genPs) {
  return request({
    url: '/article/qContent/genContentOne' ,
    method: 'post',
    data: genPs
  })
}
// 重试空白
export function genRetryAContent(genPs) {
  return request({
    url: '/article/qContent/genRetryAContent' ,
    method: 'post',
    data: genPs
  })
}
//追问

export function genAddPrompts(genPs) {
  return request({
    url: '/article/qContent/genAddPrompts' ,
    method: 'post',
    data: genPs
  })
}
// 余额
export function showBanlance(genPs) {
  return request({
    url: '/article/qContent/showBanlance' ,
    method: 'post',
    data: genPs
  })
}



